from django.conf.urls.defaults import patterns, include, url
from argus.views import *
from djangorestframework.views import * 
from argus.apiviews import *

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'argus.views.home', name='home'),
    # url(r'^argus/', include('argus.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),

    ('^$', index, {'templatefile': 'index.html'}),
    #('^$', maintain),
    ('^alarms/$', alarms),
    ('^alarms/as(\d+)/$', alarms),
    ('^changes/$', changes),
    ('^anomalies/$', anomalies),
    ('^defence/', include('defence.urls')),
    ('^account/', include('account.urls')),
    #('^defence/$', myAlarm),
    #('^defence/myPrefix$', myPrefix),
    #('^defence/getPrefix$', getPrefix),
    #('^defence/updatePrefix', updatePrefix),
    #('^defence/savePrefix$', savePrefix),
    #('^defence/destroyPrefix$', destroyPrefix),
    #('^defence/myASN$', myASN),
    #('^defence/myAlarm$', myAlarm),
    #('^defence/account$', account),
    ('^about/$', about),
    ('^news/$', news),
    ('^contact/$', contact),
    ('^vmap/$', vmap),
    ('^visitmap/$', visitmap),
    ('^reports/$', reports),
    ('^api/$', api),
    #('^analysis/', include('analysis.urls')),
    (r'^fingerprints/(\d+)/$', fingerprints),
    (r'^aspath/(\d+)/$', aspath),
    (r'^status/$', getStatusMap),
    (r'^aspathbd/(\d+)/$', aspathbd),
    (r'^statusbd/$', getStatusMapbd),
    (r'^status/v4/$', getV4StatusMap),
    (r'^status/v6/$', getV6StatusMap),
    (r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': 'static/'}),
    (r'^api/alarms/$', AlarmView.as_view()),
    (r'^api/alarms/(\d+),(\d+)/$', AlarmView.as_view()),
    (r'^api/anomalous/$', AnomalousView.as_view()),
    (r'^api/anomalous/(\d+),(\d+)/$', AnomalousView.as_view()),

    #(r'^tracking/', include('tracking.urls')),
)
